<?php
/**
 * Description of IndirizzoManager
 *
 * @author rocco
 */
require_once  'IndirizzoDataManager.php';
class IndirizzoManager
{
    private static $instance;

    public static function getInstance()
    {
        if(self::$instance == null)
        {
            $c = __CLASS__;
            self::$instance = new $c;
        }
        return self::$instance;
    }

    public function getIndirizzi($connection)
    {
        return IndirizzoDataManager::getInstance()->getIndirizzi($connection);
    }

    public function insertIndirizzo($connection, $descrizione)
    {
        IndirizzoDataManager::getInstance()->insertIndirizzo($connection, $descrizione);
    }
}
?>
